<%= form_for(@customer, remote: true) do |f| %>
  <% if @customer.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@customer.errors.count, "error") %> prohibited this customer from being saved:</h2>

      <ul>
      <% @customer.errors.full_messages.each do |message| %>
        <li><%= message %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

  <div class="row">
    <div class="col-md-1 col-md-offset-1">
      <%= f.label :name %><br>
    </div>
    <div class="col-md-8">
      <%= f.text_field :name, class: "form-control" %>
    </div>
  </div>
  <br>

  <div class="row">
    <div class="col-md-1 col-md-offset-1">
      <%= f.label :phone %><br>
    </div>
    <div class="col-md-8">
      <%= f.text_field :phone, class: "form-control" %>
    </div>
  </div>
  <br>

  <div class="row">
    <div class="col-md-1 col-md-offset-1">
      <%= f.label :total_people %><br>
    </div>
    <div class="col-md-8">
      <%= f.number_field :total_people, class: "form-control" %>
    </div>
  </div>
  <br>

  <div class="row">
  <div class="actions">
    <div class="col-md-1 col-md-offset-1">
    <%= f.submit "Save", class: "btn btn-primary" %>
    </div>
    <%= link_to 'Cancel', transactions_path, class: "btn btn-primary" %>
  </div>
</div>
<% end %>
<br>